{layout name="admin@common/template" /}
<section class="panel panel-default">
    <header class="panel-heading">
        <h3 class="m-b-none">留资信息</h3>
        <a style="position: absolute; right:5%;top:3%" href="{:url('admin/export/export_data')}" target="_blank" class="btn btn-success">导出到excel</a>
    </header>
    <div class="table-responsive">
        <section class="panel panel-default">
            <div class="panel-body">
                <div class="row form-horizontal">
                    <div class="col-sm-12">
                        <div class="row">
                            <table class="table table-striped b-t b-light">
                                <thead>
                                    <tr>
                                        <th>#</th>
                                        <th>客户姓名</th>
                                        <!-- <th>性别</th> -->
                                        <th>电话</th>
                                        <th>省份</th>
                                        <th>城市</th>
                                        <th>经销店</th>
                                        <th>添加时间</th>
                                        <th>媒体code</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {volist name="message_list" id="ecl" empty="暂时没有数据"}
                                    <tr>
                                        <td>{$ecl.id}</td>
                                        <td>{$ecl.customerName}</td>
                                        <!-- <td>{$ecl.gender}</td> -->
                                        <td>{$ecl.mobile}</td>
                                        <td>{$ecl.provinceCode}/{$ecl.provinceName}</td>
                                        <td>{$ecl.cityCode}/{$ecl.cityName}</td>
                                        <td>{$ecl.dealerCode}/{$ecl.dealerName}</td>
                                        <td>{:date('Y-m-d h:i:sa', $ecl.addTime)}</td>
                                        <td>{$ecl.mediaCode}</td>
                                    </tr>
                                    {/volist}
                                </tbody>
                            </table>
                        </div>
                        <div class="line line-dashed b-b line-lg pull-in"></div>
                        <footer class="panel-footer">
                            <div class="row">
                                <div class="col-sm-offset-4 col-sm-8 text-right text-center-xs">
                                    {$message_list->render()}
                                </div>
                            </div>
                        </footer>
                    </div>
                </div>
            </div>
        </section>
    </div>
</section>